home *** CD-ROM | disk | FTP | other *** search
/ Science Fair / Science Fair.iso / pc / working / main.dir / 00111.ls < prev    next >
Encoding:
Text File  |  1995-03-26  |  2.0 KB  |  84 lines

  1. on exitFrame
  2.   global gStart, gEnd, gVisible
  3.   set gFrame to (the timer / 20) + gStart
  4.   if rollOver(41) then
  5.     if gVisible <> 41 then
  6.       set the visible of sprite 41 to 1
  7.       if soundBusy(2) then
  8.         sound stop 2
  9.       end if
  10.       if gVisible <> 0 then
  11.         set the visible of sprite gVisible to 0
  12.       end if
  13.       set gVisible to 41
  14.       exit
  15.     end if
  16.   else
  17.     if rollOver(42) then
  18.       if gVisible <> 42 then
  19.         set the visible of sprite 42 to 1
  20.         if soundBusy(2) then
  21.           sound stop 2
  22.         end if
  23.         if gVisible <> 0 then
  24.           set the visible of sprite gVisible to 0
  25.         end if
  26.         set gVisible to 42
  27.         exit
  28.       end if
  29.     else
  30.       if rollOver(43) then
  31.         if gVisible <> 43 then
  32.           set the visible of sprite 43 to 1
  33.           if soundBusy(2) then
  34.             sound stop 2
  35.           end if
  36.           if gVisible <> 0 then
  37.             set the visible of sprite gVisible to 0
  38.           end if
  39.           set gVisible to 43
  40.           exit
  41.         end if
  42.       else
  43.         if rollOver(44) then
  44.           if gVisible <> 44 then
  45.             set the visible of sprite 44 to 1
  46.             if soundBusy(2) then
  47.               sound stop 2
  48.             end if
  49.             if gVisible <> 0 then
  50.               set the visible of sprite gVisible to 0
  51.             end if
  52.             set gVisible to 44
  53.             exit
  54.           end if
  55.         else
  56.           if rollOver(45) then
  57.             if gVisible <> 45 then
  58.               set the visible of sprite 45 to 1
  59.               if soundBusy(2) then
  60.                 sound stop 2
  61.               end if
  62.               if gVisible <> 0 then
  63.                 set the visible of sprite gVisible to 0
  64.               end if
  65.               set gVisible to 45
  66.               exit
  67.             end if
  68.           else
  69.             if gVisible <> 0 then
  70.               set the visible of sprite gVisible to 0
  71.             end if
  72.             set gVisible to 0
  73.           end if
  74.         end if
  75.       end if
  76.     end if
  77.   end if
  78.   if gFrame > gEnd then
  79.     go(gEnd)
  80.   else
  81.     go(gFrame)
  82.   end if
  83. end
  84.